import request from '@/utils/requestExam'

//根据条件查询考场表
export function getExamRoomList(query){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/searchByPage/v1",
    method: "post",
    data: query
  })
}
//根据id查询考场表
export function getExamRoomListById(id){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/selectRoomById/" + id,
    method: "get"
  })
}

//获取缓存中的某考场剩余座位数
export function getCacheSeatCount(query){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/getCacheSeatCount",
    method: "post",
    data: query
  })
}

//新增考场信息
export function addExamRoom(data){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/add/v1",
    method: "post",
    data: data
  })
}
//修改考场表
export function updateExamRoom(data){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/edit/v1",
    method: "put",
    data: data
  })
}
//删除考场表
export function deleteExamRoom(examRoomIds){
  return request({
    url: "/api/uf/boostor/exam/room/ExamRoomRest/remove/" + examRoomIds,
    method: "delete"
  })
}
